﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Windows.Forms;

namespace shserver
{
    class Reporter
    {
        private static Reporter _instance;
        //private static TextWriter _writer;
        //private static TextBox _textbox;

        public static Reporter Instance
        {
            get
            {
                if(_instance == null)
                {
                    //TODO: Aca hayun error corregir esto
                    //_instance = new Reporter(_textbox);
                    _instance = new Reporter();
                }
                return _instance;
            }
        }

        /*
        public Reporter(TextBox tb)
        {
            _textbox = tb;
            _writer = new TextBoxStreamWriter(tb);
            _instance = this;
            Console.SetOut(_writer);
        }

        public Reporter()
        {
            // TODO: Complete member initialization
        }
        */
        public static void log(string message)
        {
            Console.WriteLine(message);
        }
    }
}
